var del={
    methods:{
        cmd_del_do:function(){ 
            if(this.pages[this.activePageIndex].items.filter(item=>{return item.selected}).length<=0) return;
            //var items = this.pages[this.activePageIndex].items.filter(e=>e.selected);//待删除元素
            this.cmdo('records');
            var elements=[];
            this.pages[this.activePageIndex].items.forEach(element=>{
                if(!element.selected){
                    elements.push(JSON.parse(JSON.stringify(element)));
                }
            });

            this.itemsInstanceUnChkSel(this.activePageIndex);
			this.clearSVG();				
			this.pages[this.activePageIndex].items=[];							
			if(elements && elements.length>0){				
				for(var i=0;i<elements.length;i++){					
					this.renderItem(this.pages[this.activePageIndex],elements[i]);
				}				
            }            
        },
        cmd_del_active:function(selectCount){
            this.cmdActive['del']=selectCount>0;
        }
    }
}

export default del;
